<?php echo $this->doctype(); 
   
   $auth = Zend_Auth::getInstance();
   
   $id_pegawai = $auth->getStorage()->read()->id_pegawai;
   $pegawai = new Application_Model_Pegawai();
   $pegawai = $pegawai->getPegawai($id_pegawai);
   
   $this->jQuery()->enable();
   $this->jQuery()->uiEnable();
?>

<html>
    <head>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->headLink()
                ->prependStylesheet($this->baseUrl().'/content/css/global.css')
                ->appendStylesheet($this->baseUrl().'/content/css/style.css');?>
        
        <?php
        
            $equalizecols = '$(".body, .submenu, .content, .widget").equalizeCols();';
            $date = '$( "#date" ).datepicker();';
            $base = "var base = '".$this->baseUrl()."";
            $site = $this->site;
            if($this->jQuery()->isEnabled())
            {
                $this->jQuery()->setLocalPath($this->baseUrl().'/content/js/jquery-1.7.1.js')
                               ->setUiLocalPath($this->baseUrl().'/content/js/jquery-ui-1.8.18.custom.min.js')
                               ->addJavascriptFile($this->baseUrl().'/content/js/jquery.equalizecols.js')
                               ->addJavascriptFile($this->baseUrl().'/content/js/jquery.numeric.js')
                               ->addOnLoad($equalizecols)
                               ->addOnLoad($date)
                               ->addStylesheet($this->baseUrl().'/content/css/smoothness/jquery-ui-1.8.18.custom.css');
                echo $this->jQuery();
            }
        ?>
    </head>
    <body>
        <div class="topmenu">
                Welcome, <b><?php echo $pegawai['nama_pegawai']; ?></b> <?= $this->navigation()->menu($this->nav2)->setMaxDepth(0); ?>
        </div>
        <div class="header">
                    
            <div id="logo">
                <img src="<?php echo $this->baseUrl().'/content/images/logo.jpg';?>" width="200px" />
            </div>
            <div id="namaPerusaahan">
                <h3 id="sistemTitle">Managerial Information Systems</h3>
                <h4>PT. Aventurine Prana Asia</h4>
            </div>
        </div>
        <div class="menu">
            <?php echo $this->navigation()->menu($this->nav1)->setMaxDepth(0);?>
        </div>
        <div class="body">
            <div class="submenu">
                 <?php echo $this->navigation()->menu($this->nav1)->renderMenu(null, array(
                                                        'minDepth' => 1,
                                                        'maxDepth' => 1,
                                                        'onlyActiveBranch' => true,
                                                        'renderParents' => false,
                     ));
                 ?>
                 <?php echo $this->navigation()->menu($this->nav2)->renderMenu(null, array(
                                                        'minDepth' => 1,
                                                        'maxDepth' => 1,
                                                        'onlyActiveBranch' => true,
                                                        'renderParents' => false,
                     ));
                 ?>&nbsp;
            </div>
            <div class="content">
                <?php echo $this->layout()->content; ?>
            </div>
            <div class="widget">
                &nbsp;
                <ul class="widget-container">
                    <li class="date">
                        <div class="widget-content"><div id="date"></div></div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footer">
             Powered by <a href="http://www.gede-camp.com">Gede Camp IT Consultant</a> &COPY; 2012
        </div>
        <script>
            <?= $base."/".$site."';"; ?>
            <?= "var site = '".$this->baseUrl()."';"; ?>
        </script>
    </body>
</html>